package com.freecloud.javabasics.design.proxy.mybatis;


import com.freecloud.javabasics.design.proxy.mybatis.supper.DefaultFreeTestHandler;
import com.freecloud.javabasics.design.proxy.mybatis.supper.FreeInterceptorChain;
import com.freecloud.javabasics.design.proxy.mybatis.supper.FreeTestHandler;


/**
 * @Author: maomao
 * @Date: 2021-04-11 18:20
 */
public class MybatisProxyTest {

    public static void main(String[] args) {
        FreeInterceptorChain freeInterceptorChain = new FreeInterceptorChain();

        DefaultFreeTestHandler defaultFreeTestHandler = new DefaultFreeTestHandler();

        FreeTestHandler result = (FreeTestHandler) freeInterceptorChain.pluginAll(defaultFreeTestHandler);

        System.out.println(result.query("张三"));
    }
}
